//
//  ViewController.swift
//  SE-Image
//
//  Created by Frank Wang on 2/8/17.
//  Copyright © 2017 Frank Wang. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

        let imagess = UIImage(named:"Image")
        var imageView : UIImageView!
        
        
        
        override func viewDidLoad() {
                super.viewDidLoad()
                
                imageView = UIImageView(frame:view.bounds)
                imageView.image = imagess
                imageView.contentMode = .scaleAspectFit // 中心适配
                imageView.contentMode = .scaleToFill //default 扩大模糊
                imageView.contentMode = .scaleAspectFill //全屏适配
                imageView.center = view.center
                view.addSubview(imageView)
                // Do any additional setup after loading the view, typically from a nib.
        }
        
        override func didReceiveMemoryWarning() {
                super.didReceiveMemoryWarning()
                // Dispose of any resources that can be recreated.
        }

}

